/*
 * Copyright 2018 JDCLOUD.COM
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http:#www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * BillingRule Management APIs
 * 计费规则管理API接口
 *
 * OpenAPI spec version: v1
 * Contact: 
 *
 * NOTE: This class is auto generated by the jdcloud code generator program.
 */


using System;
using System.Collections.Generic;
using System.Text;

using JDCloudSDK.Core.Annotation;

namespace JDCloudSDK.Billing.Model
{

    /// <summary>
    ///  billingRuleRequest
    /// </summary>
    public class BillingRuleRequest
    {

        ///<summary>
        /// 站点
        ///Required:true
        ///</summary>
        [Required]
        public int Site{ get; set; }
        ///<summary>
        /// 业务线
        ///Required:true
        ///</summary>
        [Required]
        public string AppCode{ get; set; }
        ///<summary>
        /// 产品编码
        ///Required:true
        ///</summary>
        [Required]
        public string ServiceCode{ get; set; }
        ///<summary>
        /// 计费时长类型 - 0:按使用时长；1:按周期时长
        ///Required:true
        ///</summary>
        [Required]
        public int Strategy{ get; set; }
        ///<summary>
        /// 计费周期类型 - 0:按小时；1:按天
        ///Required:true
        ///</summary>
        [Required]
        public int CycleType{ get; set; }
        ///<summary>
        /// 计费模式 - 1:删除不计费；2:关机不计费
        ///Required:true
        ///</summary>
        [Required]
        public int BillingMode{ get; set; }
        ///<summary>
        /// 最小计费时长 - 必须为大于等于0的整数
        ///</summary>
        public int? TimeSpan{ get; set; }
        ///<summary>
        /// 区分大客户 - 1:是；0:否
        ///</summary>
        public int? DosingMode{ get; set; }
        ///<summary>
        /// 大客户统计周期 - 0:按小时计费；1:按天计费
        ///</summary>
        public int? DosingCycle{ get; set; }
    }
}
